package com.example.onlinemonitoring.dao;

import java.util.List;

import org.apache.ibatis.annotations.Update;

import com.example.onlinemonitoring.Util.tem.MyMapper;
import com.example.onlinemonitoring.model.Dlhlsensor;
import com.example.onlinemonitoring.model.Jddlsensor;
import com.example.onlinemonitoring.model.common.dcurrentaddrconfig;

public interface JddlsensorMapper extends MyMapper<Jddlsensor> {
        List<dcurrentaddrconfig> selectaddr(Jddlsensor record);
    @Update({"update jddlsensor","set lastdcurrentaddr = null","where stationid=#{stationid}","and devicegroup=#{devicegroup}","and lastdcurrentaddr = #{lastdcurrentaddr}"})
    int setlastdcurrentaddr(Integer stationid,Integer devicegroup,Integer lastdcurrentaddr);
}